package com.ruoyi.sywx.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单位信息业务对象 sy_unit_info
 *
 * @author ruoyi
 * @date 2024-01-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SyUnitInfoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 单位名称
     */
    @NotBlank(message = "单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unitName;

    /**
     * 单位编号
     */
    @NotBlank(message = "单位编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String num;

    /**
     * 单位联系电话
     */
    @NotBlank(message = "单位联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;


}
